// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "normalize.css/normalize.css";
import echarts from "echarts";
import "./router/permission";
import store from "./store";
import VueI18n from "vue-i18n";
Vue.use(VueI18n);
// 实例化i18n并引入语言文件。
const i18n = new VueI18n({
  locale: "zh-CN", // 语言标识
  messages: {
    "zh-CN": require("@/assets/lang/zh-CN.js"),
    "en-US": require("@/assets/lang/en-US.js")
  }
});

Vue.use(ElementUI);
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  i18n,
  render: h => h(App),
  template: "<App/>"
});
